import request from '@/utils/request'

// 查询游记列表
export function listTravelnotes(query) {
  return request({
    url: '/system/travelnotes/list',
    method: 'get',
    params: query
  })
}

// 查询游记详细
export function getTravelnotes(id) {
  return request({
    url: '/system/travelnotes/' + id,
    method: 'get'
  })
}

// 新增游记
export function addTravelnotes(data) {
  return request({
    url: '/system/travelnotes',
    method: 'post',
    data: data
  })
}

// 修改游记
export function updateTravelnotes(data) {
  return request({
    url: '/system/travelnotes',
    method: 'put',
    data: data
  })
}

// 删除游记
export function delTravelnotes(id) {
  return request({
    url: '/system/travelnotes/' + id,
    method: 'delete'
  })
}
